<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>css样式列表</title>
		<style type="text/css">
		ul{
			
		}
			li{
				float:left;
				list-style-type: none;
				text-align: center;
				background-color: #FFA815;
				/*外边距*/
				margin-left: 5px;
				/*内边距*/
				padding-left: 10px;
			}
			a{
				margin-left: 5px;
				padding-left: 10px;
				float: left;
				width: 150px;
				text-decoration: none;
				color: #9B1CEB;
				border-right: 1px solid white;
			}
			
			a:hover{
				color:chartreuse;
			}
			a:active{
				color:red;
			}
			.pstyle1{
				margin: -5px 3px 10px;
				border:solid;
			}
			.pstyle2{
				margin: 5px 3px 10px;
				border:solid;
				padding: -5px 5px 3px ;
			}
			.contentdiv{
				float: none;			
				width: 600px;
			}
			.contentdiv2{
				margin: 5px 3px 3px 4px;
				float: none;			
				width: 600px;
			}
			.subDiv{
				width: 45%;
				margin: 10px 5px 6px 8px;				
				float: left;
			}
			
			.subDiv2{
				width: 45%;
				margin: 20px 5px 6px 8px;				
				float: left;
			}
			.subDiv3{
				width: 45%;
				height: 30px;
				margin: 10px 5px 6px 8px;
							
				float: left;
			}
		</style>
	</head>
	<body>
		<p>css设置网页导航栏样式：</p>

		<ul>
			<li><a href="#">首页</a></li>
			<li><a href="#">用户管理</a></li>
			<li><a href="#">购物车</a></li>
			<li><a href="#">订单</a></li>
			<li><a href="#">退出</a></li>
		</ul>
		<br>
		<div class="contentdiv">
		<div class="subDiv">
			<p class="pstyle1">你好</p>		
		</div>
		<div class="subDiv">
			<p class="pstyle2">大家好</p>
		</div>
		
		</div>
		<div class="contentdiv2">
		<div class="subDiv2">
			<p class="pstyle1">吃饭了</p>	
			<p class="pstyle2">没有呢，你请客么</p>
		</div>
		<div class="subDiv3">
			<p class="pstyle2">没有呢，你请客么</p>
		</div>
		</div>
		<br>
		
		
	</body>
</html>
